/**
 * 
 */
package coop.tecso.core.test.handlers.factory.impl;

import java.beans.PropertyDescriptor;

import org.org.usurper.handlers.IHandler;

import coop.tecso.core.test.handlers.ValueObjectHandler;
import coop.tecso.core.test.handlers.factory.PropertyHandlerFactory;

/**
 * @author daniel
 */
public class DefaultPropertyHandlerFactory implements PropertyHandlerFactory {


    /*
     * (non-Javadoc)
     * @see com.avritech.zapsaude.factory.PropertyHandlerFactory#build(java.lang.Class, java.lang.String)
     */
    @Override
    public IHandler build(Class<?> contextualClass, PropertyDescriptor descriptor) {
        return new ValueObjectHandler(descriptor.getPropertyType());
    }
}